package com.infoland.afanmall.model.my.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @author 王永吉
 * @date 2018/7/23 15:32
 */
public class KefuEntity implements MultiItemEntity {
    int type;

    public KefuEntity(int type) {
        this.type = type;
    }

    @Override
    public int getItemType() {
        switch (type) {
            case 0:
                return KeFu.TIME;
            case 1:
                return KeFu.LEFT;
            case 2:
                return KeFu.RIGHT;
            default:
                return 0;
        }
    }
}
